﻿@model cloudscribe.Core.Identity.IdentityServerLogoutViewModel
@using cloudscribe.Core.IdentityServerIntegration
@inject IStringLocalizer<CloudscribeIds4Resources> sr
@inject ISiteContextResolver siteResolver
@{
    var Tenant = await siteResolver.ResolveSite(Context.Request.Host.Host, Context.Request.Path);
    var messageFormat = sr["Would you like to logout of {0}?"];
    var message = string.Format(messageFormat, Tenant.SiteName);
}
<div class="logout-page">
    <div class="page-header">
        <h1>@sr["Logout"]</h1>
    </div>
    <p>@message</p>
    <form asp-action="Logout">
        <input type="hidden" name="logoutId" value="@Model.LogoutId" />
        <fieldset>
            <div class="form-group">
                <button class="btn btn-primary">@sr["Yes"]</button>
            </div>
        </fieldset>
    </form>

</div>
